#ifndef GAMESOUNDS_H
#define GAMESOUNDS_H

#include <QObject>

#define MAX_AUDIOEFFECT 8
#define MAX_BGSOUND     2
class PlayerUtility;

class GameSounds : public QObject
{
    Q_OBJECT
public:
    explicit GameSounds(QObject *parent = 0);
    ~GameSounds();
    void init();
    void playBgSound(int index);
    void stop(int index);
    void play(int index);
    bool IsPlaying(int index);
private:
    PlayerUtility* m_sounds[MAX_AUDIOEFFECT];
    PlayerUtility* m_bgSound[MAX_BGSOUND];
};

#endif // GAMESOUNDS_H
